package com.wxh.controller;

import com.wxh.domain.City;
import com.wxh.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class CityController {
    @Autowired
    CityService cityService;
    @GetMapping("list")
    private List<City> cityList(){
        List<City> list = cityService.list();
        return list;
    }
}
